=Find Duplicates=

Everything can find files and folders with duplicate names, sizes, dates and other properties.

<beta1.5>



[[#usage|Usage]]
[[#dupe|Find duplicate results]]
[[#distinct|Find unique results (including first duplicate)]]
[[#unique|Find unique results (not duplicated)]]
[[#lines|Dupe lines]]



==usage|Usage==

To instantly find files in your results with the same size:
Right click the '''size''' column header and click '''Find size duplicates'''.
-or-
Include the following in your search:
`dupe:size`

To find files with the same content:
Include the following in your search:
`dupe:size;sha256`

The SHA-256 value is only calculated for files with the same size.
Calculating the SHA-256 hash will take a long time.
For the best performance, combine the `dupe:size;sha256` search with other search filters.



When using duplicate, unique, or distinct modes, new results are not included automatically.
Press F5 to refresh your results.
Existing results are updated in real-time.



==dupe|Find duplicate results==

Everything can find files/folders with duplicate property values in the current results.



To find duplicate results:
<ul>
*Right click a '''column header''' and click '''Find ''<property>'' duplicates'''.
</ul>

For example, to find size-duplicate files/folders:
<ul>
*Right click the '''size column header''' and click '''Find size duplicates'''.
</ul>

Everything shows only items that have duplicates.
`DUPE` text is shown in the status bar on the right.
Double click the `DUPE` text in the status bar or change the search to clear the find-duplicates view.

<picture><source srcset="support/everything/Find.Size.Duplicates.Dark.png" media="(prefers-color-scheme: dark)"><img alt="Find Size Duplicates" src="support/everything/Find.Size.Duplicates.Light.png"/></picture>



To find duplicate files/folders from a search:
<ul>
*Include [[/forum/viewtopic.php?f=12&t=10176#dupe|dupe:<property>]] in your search.
</ul>

If no property is specified, Everything will default to the name property.

For example, to find files/folders with the same size, include the following in your search:
`dupe:size`



To find files/folders with multiple duplicate property values:
<ul>
*Include the following in your search:
[[/forum/viewtopic.php?f=12&t=10176#dupe|dupe:<property-list>]]
where <property-list> is a semicolon (`;`) delimited list of property names.
</ul>

A maximum of 8 properties are supported.

For example, to find files/folders with the same name and size, include the following in your search:
`dupe:name;size`



To find files with duplicate content:
<ul>
*Include the following in your search:
`dupe:size;sha256`
</ul>

Everything compares file sizes first.
If the size matches, Everything will then calculate the SHA-256 hash to compare content.
Calculating the SHA-256 hash will take a long time.



To find duplicate files between two folders:
<ul>
*Include the following in your search:
`"C:\path\to\folder A" | "C:\path\to\folder B" dupe:size`
</ul>



Use `dupe-from:` to find duplicates that include at least one item from a specific folder.

For example:
`*.jpg dupe-from:"C:\My Photos" dupe:size`



==distinct|Find unique results (including first duplicate)==

Find unique (including first duplicate) is also known as '''distinct''' in Everything.

To find distinct results:
<ul>
*Right click a '''column header''', right click '''Find ''<property>'' duplicates''' and click '''Find unique (including first duplicate)'''.
</ul>

For example, to find distinct names in the results:
<ul>
*Right click the '''Name column header''', right click '''Find Name duplicates''' and click '''Find unique (including first duplicate)'''.
</ul>

Everything shows only items that are unique or the first duplicate.
`DISTINCT` text is shown in the status bar on the right.
Double click the `DISTINCT` text in the status bar or change the search to clear the find-distinct view.



To find distinct files/folders from a search:
<ul>
*Include the following in your search:
[[/forum/viewtopic.php?f=12&t=10176#distinct|distinct:<property>]]
</ul>

If no property is specified, Everything will default to the name property.

For example, to find one file/folder from each folder, include the following in your search:
distinct:path



Use [[/forum/viewtopic.php?f=12&t=10176#distinct-sort|distinct-sort:]] to influence which duplicate item is kept.

For example:
`distinct-sort:path;date-modified distinct:path` = matches the latest modified file/folder in each folder
`distinct-sort:path;size distinct:path` = matches the largest file/folder size in each folder



==unique|Find unique results (not duplicated)==

To find unique results:
<ul>
*Right click a '''column header''', right click '''Find ''<property>'' duplicates''' and click '''Find unique (not duplicated)'''.
</ul>

For example, to find unique names in the results:
<ul>
*Right click the '''Name column header''', right click '''Find Name duplicates''' and click '''Find unique (not duplicated)'''.
</ul>

Everything shows only items that do not have duplicates.
`UNIQUE` text is shown in the status bar on the right.
Double click the `UNIQUE` text in the status bar or change the search to clear the find-unique view.



To find unique files/folders from a search:
<ul>
*Include the following in your search:
[[/forum/viewtopic.php?f=12&t=10176#unique|unique:<property>]]
</ul>

If no property is specified, Everything will default to the name property.

For example, to find unique filenames, include the following in your search:
`unique:name`



==lines|Dupe lines==

Horizontal dividing lines are shown when values change between items.

<picture><source srcset="support/everything/Find.Size.Duplicates.Dark.png" media="(prefers-color-scheme: dark)"><img alt="Find Size Duplicates" src="support/everything/Find.Size.Duplicates.Light.png"/></picture>

To customize the line color:
<ul>
*In '''Everything''', from the '''Tools''' menu, click '''Options'''.
*Click the '''Advanced''' tab on the left.
*To the right of '''Show settings containing''', search for: `dupe`
*Select '''dupe_line_color''' (or '''dupe_line_dark_color''' for dark mode).
*Click the '''color button'''.
*Select a new color and click '''OK'''.
*Click '''OK'''.
</ul>

To hide the dividing line:
<ul>
*In '''Everything''', from the '''Tools''' menu, click '''Options'''.
*Click the '''Advanced''' tab on the left.
*To the right of '''Show settings containing''', search for: `dupe`
*Select '''dupe_lines'''.
*Set the value to: '''false'''
*Click '''OK'''.
</ul>
